include ../../PreToolsHelper.mk

LLVM_CONFIG    ?= llvm-config
LLVM_EXISTS   = $(shell which $(LLVM_CONFIG) > /dev/null && echo asdf)

ifneq ("$(LLVM_EXISTS)", "asdf")
    $(error Invalid llvm config $(LLVM_EXISTS))
endif



TOOL      := WNScriptInterpreter
SOURCES   := Main.cpp
WNLIBS    := WNScripting WNFileSystem 
LINKFLAGS := $(shell $(LLVM_CONFIG) --ldflags)
CXXFLAGS += -fno-rtti

TOOL_ADDITIONAL_LIBS := $(shell $(LLVM_CONFIG) --libs)
TOOL_ADDITIONAL_LIB_FILES := $(shell $(LLVM_CONFIG) --libfiles)

include ../../ToolsHelper.mk

